﻿namespace Com.ZGH.Dns
{
    /// <summary>
    /// 
    /// </summary>
    public class QueryType
    {
        /// <summary>
        ///  A
        ///  IPv4地址
        /// </summary>
        public static short A = 1;

        /// <summary>
        ///  NS
        /// 名字服务器
        /// </summary>
        public static short NS = 2;

        /// <summary>
        ///  CNAME
        ///  规范名称。定义主机的正式名字的别名。
        /// </summary>
        public static short CNAME = 5;


        /// <summary>
        ///  开始授权。标记一个区的开始。
        ///  SOA
        /// </summary>
        public static short SOA = 6;

        /// <summary>
        ///  WKS
        ///  熟知服务。定义主机提供的网络服务。
        /// </summary>
        public static short WKS = 11;

        /// <summary>
        ///  PTR
        ///  指针。把IP地址转化为域名。
        /// </summary>
        public static short PTR = 12;

        /// <summary>
        ///  HINFO
        /// 主机信息。给出主机使用的硬件和操作系统的表述。
        /// </summary>
        public static short HINFO = 13;

        /// <summary>
        ///  MX
        /// 邮件交换。把邮件改变路由送到邮件服务器。
        /// </summary>
        public static short MX = 15;

        /// <summary>
        ///  AAAA
        ///  IPv6地址。
        /// </summary>
        public static short AAAA = 28;

        /// <summary>
        ///  AXFR
        ///  传送整个区的请求。
        /// </summary>
        public static short AXFR = 252;


        /// <summary>
        ///  ANY
        ///   对所有记录的请求。
        /// </summary>
        public static short ANY = 255;
    }
}
